﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.RightsManagement;
using System.Text;
using System.Threading.Tasks;

namespace InfonavaEye.model
{
    public enum ImageShapeEnum
    {
        RECTANGLE = 1,
        CIRCLE = 2,

    }

    public class OCRResult
    {
        public Nail nail { get; set; }
        public int rowNum { get; set; }

        /// <summary>
        /// 形状 1 线型，2 圆型
        /// </summary>
        public int shape { get; set; }

        public string code { get; set; }

        /// <summary>
        /// 异常信息
        /// </summary>
        public string errorMsg { get; set; }

        public string codeOld { get; set; }

        /// <summary>
        /// 原图
        /// </summary>
        public string filePath { get; set; }

        /// <summary>
        /// 拉直之后的图（圆环形状的图-拉直）
        /// </summary>
        public string straightFilePath { get; set; }

        /// <summary>
        /// 拉直之后的图-旧算法（圆环形状的图-拉直）
        /// </summary>
        public string straightFilePathOld { get; set; }

        /// <summary>
        /// 0 等待识别，1 已识别，2 等待再次拉直和识别，3 等待重新处理
        /// </summary>
        public int status;

        /// <summary>
        /// 仅采样+拉直(不进行OCR识别)
        /// </summary>
        public bool isSample;

        public string captureOptSN { get; set; }
        /// <summary>
        /// 是否最后一个
        /// </summary>
        public bool isLastCount;
    }
}
